package cn.sxjzit.officlal.service.impl;

import cn.sxjzit.officlal.entity.User;
import cn.sxjzit.officlal.mapper.UserMapper;
import cn.sxjzit.officlal.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;
    @Override
    public boolean update(User user) {
        return userMapper.update(user);
    }

    @Override
    public List<User> selectAllUser() {
        return userMapper.selectAllUser();
    }

    @Override
    public User addUser(User user) {
        return userMapper.addUser(user);
    }

    @Override
    public boolean deleteUser(int id) {
        return userMapper.deleteUser(id);
    }
}
